package com.ligongmusic.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

import com.ligongmusic.R;
import com.ligongmusic.view.TopManager;
import com.ligongmusic.view.XListView;
import com.ligongmusic.view.XListView.IXListViewListener;

public class MusicList extends Activity implements IXListViewListener{
	private XListView mListView;
	private boolean hasData = true;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.network_music);
		initView();
		getMusic();
	}

	private void getMusic() {
//		mListView.setPullLoadEnable(beanList.size() >= SIZE);
	}

	private void initView() {
		TopManager.getTopManager(this).showTop(true, "音乐列表", new OnClickListener() {
			@Override
			public void onClick(View v) {
				finish();
			}
		});
		mListView = (XListView) findViewById(R.id.music_list);
		mListView.setPullLoadEnable(true);
		mListView.setXListViewListener(this);
	}

	@Override
	public void onRefresh() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onLoadMore() {
		// TODO Auto-generated method stub
		
	}
}
